using System;
using System.Collections.Generic;
using System.Text;
using Dapper.Contrib.Extensions;
using DapperExtensions.Mapper;
using Publicuse.Entity.AttributeUtil;
using Publicuse.Entity.AttributeUtil.Validate;
using SqlSugar;

namespace Publicuse.Entity
{
    /// <summary>
    /// 数据表代码生成模板信息管理模块管理
    /// </summary>
    [DBTable("`geeker-tbcodegeneration`", "数据表代码生成模板信息")]
    [Table("`geeker-tbcodegeneration`")]
    [SugarTable("`geeker-tbcodegeneration`")]
    public class Tbcodegeneration :BaseModel<long>
    {
     	[Remark("表名称")]
		[Required]
		 public string name { get; set; }

		[Remark("表编码")]
		[Required]
		 public string code { get; set; }

		[Remark("模板内容")]
		[Required]
		 public string content { get; set; }

		 public Tbcodegeneration() 
		 { 
			 this.Id=0; 
		 }
    }

     /// <summary>
    /// 数据表代码生成模板信息管理查询参数
    /// </summary>
    public class TbcodegenerationQuery : CommonQuery
    {
        public TbcodegenerationQuery()
        {
            this.exportName = GetExportName;
        }

        public static string GetExportName
        {
            get { return "tbcodegeneration"; }
        }
    }
}
